#if !defined(AFX_PHASEEXEC_H__C73BA068_64AE_4AFB_94B1_E42608CFF0F6__INCLUDED_)
#define AFX_PHASEEXEC_H__C73BA068_64AE_4AFB_94B1_E42608CFF0F6__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// PhaseExec.h : header file
//
#define	STATUS_EXE	1
#define STATUS_BRK	2
#define STATUS_END	3

#include "WaitDlg.h"

/////////////////////////////////////////////////////////////////////////////
// CPhaseExec dialog

class CPhaseExec : public CDialog
{


// Construction
public:
	int currentCampaign;
	CPhaseExec(CWnd* pParent = NULL);   // standard constructor
	~CPhaseExec();						// standard destructor
	CImageList	*m_pImageHdrSmall;
	CImageList  *m_pImageList;
	CImageList	*m_pImageListSmall;
	CElemMove	*m_pElemMoveDialog;
	CWaitDlg	*m_pWaitDlg;
	int			m_OpStatus;
	int			iconInsr;
	int			deltaCamp;
	int			iconRemo;
	int			iconDecl;
	int			iconMove;
	int			startMast;
	TCHAR		LogPath[128];
	int			m_loggedUser;
	
	TCHAR		m_startMovPath[256];
	TCHAR		m_endMovPath[256];
	TCHAR		m_failedMovPath[256];
	TCHAR		m_endCampPath[256];

	void EditUpdate();
	void ListUpdate(int phasNum);
	LRESULT OnPhEnd(WPARAM wParam, LPARAM lParam );
	LRESULT OnPhStarted(WPARAM wParam, LPARAM lParam);
	LRESULT OnPhBreak(WPARAM wParam, LPARAM lParam);
	LRESULT OnPhStep(WPARAM wParam, LPARAM lParam);
	void EchoStrAdd(TCHAR *msg);
	bool SetControls(void);
	bool CheckUser(void);
	void newCamp(void);
	void DisableControls(void);
	void CenterSchedList(int phasNum);
	// Dialog Data
	//{{AFX_DATA(CPhaseExec)
	enum { IDD = IDD_PHASE_EXEC };
	CButton	m_plusCamp;
	CButton	m_minusCamp;
	CButton	m_ConfManag;
	CButton	m_TuneInfi;
	CButton	m_Report;
	CButton	m_StartCamp;
	CButton	m_EndCamp;
	CButton	m_SetCyc;
	CButton	m_ModeSel;
	CButton	m_LogPathChange;
	CListBox	m_lstEcho;
	CListCtrl	m_SchedList;
	CButton	m_StartPerm;
	CButton	m_MicroOp;
	CButton	m_Start;
	CButton	m_TechCycle;
	CString	m_Camp;
	CString	m_StartTime;
	CString	m_CurrCycle;
	CString	m_NextCycle;
	BOOL	m_ChkEcho;
	BOOL	m_ChkLog;
	CString	m_Operator;
	CString	m_sCampNum;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CPhaseExec)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CPhaseExec)
	afx_msg void OnMove();
	afx_msg void OnPerm();
	virtual BOOL OnInitDialog();
	afx_msg void OnLoad();
	afx_msg void OnTc();
	afx_msg void OnPhStart();
	afx_msg void OnStart();
	afx_msg void OnChklog();
	afx_msg void OnChkecho();
	afx_msg void OnLogpath();
	afx_msg void OnSetNextCyc();
	afx_msg void OnModesel();
	virtual void OnCancel();
	afx_msg void OnMicroOp();
	afx_msg void OnStartCamp();
	afx_msg void OnSetfocusCamp();
	afx_msg void OnSetfocusOperator();
	afx_msg void OnSetfocusStartTime();
	afx_msg void OnSetfocusCurrCycle();
	afx_msg void OnSetfocusNextCycle();
	afx_msg void OnEndcamp(int* retvalue );
	afx_msg void OnReport();
	afx_msg void OnTuneInfi();
	afx_msg void OnDblclkSchedList(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnConfManag();
	afx_msg void OnClose();
	afx_msg void OnDestroy();
	afx_msg void OnSetFocus(CWnd* pOldWnd);
	afx_msg void OnMinusCamp();
	afx_msg void OnPlusCamp();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
	
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_PHASEEXEC_H__C73BA068_64AE_4AFB_94B1_E42608CFF0F6__INCLUDED_)
